{include file="zp_includetop" /}
<title>您搜索的是{$param.wd}{gt name="param.p" value="1"}第{$param.p}页{/gt}-{$site_name}</title>
<meta name="keywords" content="{notempty name="list_keywords"}{$list_keywords}{else/}{$param.wd}{/notempty}">
<meta name="description" content="{notempty name="list_description"}{$list_description}{else/}{$param.wd}{/notempty}">
{include file="zp_include" /}
<link href="{$cdn}css/detail.min.css" rel="stylesheet">
<style>
.newslist li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    height: 85px;
    border-bottom: 1px solid #f4f5f7;
}
.newslist li.nopic {
    height: auto;
}
.newslist li .newspic {
    position: relative;
    float: left;
    margin-right: 10px;
    width: 150px;
    height: 85px;
    overflow: hidden;
}
.newslist li .newspic img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
}
.newslist li h2 {
    font-size: 14px;
    line-height: 24px;
    height: 48px;
    margin-bottom: 15px;
}
.newslist li h2.nopic {
    height: auto;
    max-height: 48px;
}
.newslist li p {
    color: #999;
}
.newslist li p span {
    margin-right: 20px;
}
</style>
</head>
<body>
{include file="zp_header" /}
<div class="wp clearfix">
    <div class="d-position"><a href="{$site_path}" title="{$site_name}">首页</a><span>/</span>搜索<b>{$param.wd}</b>列表</div>
    {php}$sid=1;{/php}
    {vod var="list" wd="'.$param['wd'].'"  limit="10" page="true" order="vod_addtime desc"}{/vod}  
    {empty name="list"}  
    {star var="list" name="'.$param['wd'].'"  limit="5" page="true" order="star_addtime desc"}{/star}
    {php}$sid=3;{/php}
    {/empty}
    {empty name="list"} 
    {news var="list" wd="'.$param['wd'].'"  limit="5" page="true" order="news_addtime desc"}{/news}
    {php}$sid=2;{/php}
    {/empty}
    <div class="filter-s-nav clearfix mt10">
        <span class="fl">搜索<b>{$param.wd}</b>共找到</span>
        <div class="filter-type fl">
            <a {if condition="($sid eq 1)"} class="on"{/if} href="javascript:;" data="sid-1">视频</a>
            <a {if condition="($sid eq 1)"} class="on"{/if} href="javascript:;" data="sid-3">明星</a>
            <a {if condition="($sid eq 1)"} class="on"{/if} href="javascript:;" data="sid-2">新闻</a>
        </div>
        <span class="fr">搜索<strong>{$param.wd}</strong>共找<strong id="counts">{$list->total()}</strong>个相关内容</span>
    </div>
    {if condition="($sid eq 1)"}
    <div class="d-item-list clearfix">
        {volist name="list" id="zanpian"}
        <a data-id="{$zanpian.vod_id}" href="{:zanpian_read_url('home/vod/read',$zanpian)}" title="{$zanpian.vod_name}">
            <div><img class="loading" src="{$cdn}img/blank.png" data-original="{$zanpian.vod_pic|zanpian_img_url=orj360}" alt="{$zanpian.vod_name}"></div>
            <h3>{$zanpian['vod_name']|get_hilight_ex=$param.wd,'font','#09BB07'}</h3>
            <p>{php}if(is_numeric($zanpian[vod_continu])){{/php}{neq name="zanpian.vod_continu" value="0"}更新至{gt name="zanpian.vod_continu" value="9"}{$zanpian.vod_continu}{else/}0{$zanpian.vod_continu}{/gt}话{else /}完结{/neq}{php}}else{{/php}{$zanpian.vod_continu}{php}}{/php}</p>
        </a>
        {/volist}
    </div>
    {/if}
    {if condition="($sid eq 2)"}
    <div class="d-item-list clearfix">
        {volist name="list" id="zanpian"}
        <a data-id="{$zanpian.star_id}" href="{:zanpian_read_url('home/star/read',$zanpian)}" title="{$zanpian.star_name}">
            <div><img class="loading" src="{$cdn}img/blank.png" data-original="{$zanpian.star_pic|zanpian_img_url=orj360}" alt="{$zanpian.star_name}"></div>
            <h3>{$zanpian['star_name']|default='未知'|get_hilight_ex=$param.wd,'font','#09BB07'}</h3>
            <p>{$zanpian.star_up}</p>
        </a>
        {/volist}
    </div>
    {/if}
    {if condition="($sid eq 3)"}
    <ul class="newslist">
        {volist name="list" id="zanpian"}
        <li {empty name="zanpian['news_pic']"}class="nopic"{/empty}>
            {notempty name="zanpian['news_pic']"}<div class="newspic"><a href="{:zanpian_read_url('home/news/read',$zanpian)}" title="{$zanpian.news_name}"><img class="loading" src="{$cdn}img/blank.png" alt="{$zanpian.news_name}" data-original="{$zanpian.news_pic|zanpian_img_url=orj360}" /></a></div>{/notempty}
            <div class="newsinfo">
                <h2 {empty name="zanpian['news_pic']"}class="nopic"{/empty}><a href="{:zanpian_read_url('home/news/read',$zanpian)}" title="{$zanpian.news_name}">{$zanpian.news_name}</a></h2>
                <p><span><a href="{:zanpian_show_url($zanpian.news_cid)}">{:getlistname($zanpian.news_cid,'list_name')}</a></span><span>{$zanpian.news_addtime|date='Y-m-d H:i:s',###}</span></p>
            </div>
        </li>
        {/volist}
    </ul>
    {/if}
    <div class="tab-a uipages pages"><ul class="pages">{$list->render()}</ul></div>
</div>
<script>
var type_ajax_url="index.php?s=home-search-index-wd-{$param['wd']|urlencode}{$param['director']|urlencode}";
var type_parms={"sid":"{$sid}","p":1};
</script>
{include file="zp_footer" /}
</body>
</html>